package org.openurp.edu.student.info.model

import java.text.SimpleDateFormat

import scala.beans.BeanProperty

import org.beangle.data.model.LongId

/**
 * @author King Sun
 */
class Schooling extends LongId {

  @BeanProperty
  var semester: Semester = _

  @BeanProperty
  var code: String = _

  @BeanProperty
  var name: String = _

  @BeanProperty
  var scholarship: Scholarship = _

  @BeanProperty
  var baoming: String = _

  @BeanProperty
  var xuefei: String = _

  @BeanProperty
  var zhusufei: String = _

  @BeanProperty
  var baoxianfei: String = _

  @BeanProperty
  var yikatong: String = _

  @BeanProperty
  var jieshu: String = _

  @BeanProperty
  var total: String = _

  @BeanProperty
  var stdtype: Stdtype = _

  @BeanProperty
  var paytype: Paytype = _

  @BeanProperty
  var paystate: Paystate = _

  @BeanProperty
  var invoice: String = _
  def getTimeDate(): String = {
    if (null == time) ""
    else {
      new SimpleDateFormat("YYYY-MM-dd").format(time)
    }
  }
  var time: java.sql.Date = _

  @BeanProperty
  var notes: String = _
}